//
//  SearchCell.m
//  ProjectsOne
//
//  Created by iOS开发 on 2018/7/11.
//  Copyright © 2018年 iOS开发. All rights reserved.
//

#import "SearchCell.h"

@implementation SearchCell

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self createView];
    }
    return self;
}

- (void)createView {
    _keywordLabel = [[UILabel alloc] init];
    _keywordLabel.numberOfLines = 1;
    _keywordLabel.textColor = [UIColor colorWithHexString:@"666666"];
    _keywordLabel.font = [UIFont systemFontOfSize:15];
    _keywordLabel.textAlignment = NSTextAlignmentCenter;
    _keywordLabel.layer.cornerRadius = 5;
    _keywordLabel.layer.borderColor = [UIColor colorWithHexString:@"cccccc"].CGColor;
    _keywordLabel.layer.borderWidth = .5f;
    [self addSubview:_keywordLabel];
    
    [_keywordLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.height.mas_equalTo(30);
        make.right.left.bottom.mas_equalTo(self);
    }];
}

@end
